const advertisement = {
  state: {
    startTime: [],
    endTime: []
  },
  mutations: {
    UPDATE_START_TIME: (state, time) => {
      this.state.startTime = time
    },
    UPDATE_END_TIME: (state, time) => {
      this.state.endTime = time
    }
  },
  actions: {
    updateStartTime({commit}, time) {
      commit('UPDATE_START_TIME', time)
    },
    updateEndTime({commit}, time) {
      commit('UPDATE_END_TIME', time)
    }
  }
}

export default advertisement
